package com.sharp.authorization.dao.common.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.*;
import lombok.Data;

/**
 * Title: SaArea
 * Description: Copyright: Copyright (c) 2019 Company: BHFAE
 *
 * @author Sharp
 * @date 2022/6/16 16:20
 */
/**
    * 行政区域表
    */
@ApiModel(value="com-sharp-authorization-dao-common-entity-SaArea")
@Data
@Table(name = "sa_area")
public class SaArea {
    /**
     * code
     */
    @Id
    @Column(name = "code")
    @ApiModelProperty(value="code")
    private String code;

    /**
     * 上级code
     */
    @Column(name = "parent_code")
    @ApiModelProperty(value="上级code")
    private String parentCode;

    /**
     * 名称
     */
    @Column(name = "`name`")
    @ApiModelProperty(value="名称")
    private String name;

    /**
     * 层级
     */
    @Column(name = "`level`")
    @ApiModelProperty(value="层级")
    private Integer level;
}